
package mas;

import javax.swing.JFrame;

/**
 * Entry point to the application, it creates and setups the necessary GUI 
 * elements for the multi-agent system application
 * 
 * Advanced Java Programming - ICA 2 Middleware 
 * @author Carl Morphet, Matt Constable, Stephen Pammenter
 * Teesside University
 * @version %I% 
 * Created: Apr 12, 2012
 */
public class MASMain 
{
    /** TODO: Change title to something more appropriate */
    
    /** Main method which creates and instantiates the GUI class along and adds
     * it to a JFrame along with setting the close operation and JFrame size 
     */
    public static void main(String[] args) 
    {
        JFrame application = new JFrame("MAS Application");
        
        GUI graphicalInterface = new GUI();
        application.add(graphicalInterface);
        
        application.pack();
        application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        application.setVisible(true);
    }
}